﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ESRI.ArcGIS.Client.Symbols;
using System.IO;
using System.Xml.Linq;
using System.Windows.Markup;
using System.Net;
using ESRI.ArcGIS.Client;
using ESRI.ArcGIS.Client.ValueConverters;
using SymbolEditor.WpfLibrary;


namespace SymbolEditor
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public UCMainWindow ucMainWindow = new UCMainWindow();

        public bool IsAddinMode = false;

        public MainWindow()
        {
            InitializeComponent();
            InitializeMainWindow();
        }

        private void InitializeMainWindow()
        {
            MyCanvas.Children.Add(ucMainWindow);
        }

        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            if (IsAddinMode)
            {
                e.Cancel = true;
                this.Visibility = System.Windows.Visibility.Hidden;
            }
        }    
    }
}
